<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">

<TITLE>Switch -P[pwd] - set password</TITLE>
<link href="style.css" rel="stylesheet" type="text/css">
</HEAD>

<BODY BGCOLOR="#FFFFFF" TEXT="#000000">

<OBJECT TYPE="application/x-oleobject" CLASSID="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">

	<PARAM NAME="Keyword" VALUE="Switches: -P[pwd] - set password">
</OBJECT>

<P class="title"><A NAME="HELPSwP"></A>Switch <B>-P[pwd]</B>  -  set
password<hr></P>

<P>Set password <I>&lt;pwd&gt;</I><B> </B>to <A HREF="HELPArcEncryption.htm">
encrypt</A> files when archiving or to decrypt when extracting.
Passwords are case-sensitive. Maximum password length is 127 characters.
Longer passwords are truncated to this length. If you omit a password
in command line, you will be prompted to enter it.</P>

<P>In the shell mode a password may be entered through <A HREF="HELPEnterPassword.htm">
Enter default password</A> dialog or in the <A HREF="HELPGetArcGeneral.htm#SetPwd">
Archive name and parameters</A> dialog.</P>

<h1><B>Example</B></h1>

<P>add the contents of the folder "<I>games"</I> to the archive "<I>
secret"</I><B>,</B> using the password ZaBaToAd</P>

<p class="sample">WinRAR a -pZaBaToAd -r secret games\*.*</p>

<h1><B>Notes</B></h1>

<ol type="1">
  <li>Use 8 characters or longer passwords for higher security.
      Avoid passwords which are easy to guess.</li>
  <li>Remember your passwords. If you forget a password to encrypted archive,
      you will not be able to unpack it.</li>
</ol>
</BODY>
</HTML>
